import api from '../index'

export default {
  // 保存条目
  createOrUpdate: (data: any) => api.post('/v1/orderItemCreateOrUpdate', data),
  page: (data: any) => api.get('/v1/order/page', { params: data }),
  pageNotBind: (data: any) => api.get('/v1/order/pageNotBind', { params: data }),
  list: (data: any) => api.get('/v1/order/list', { params: data }),
  delBatch: (data: any) => api.delete('/v1/order/batchByIds', { data }),
  del: (id: any) => api.delete(`/v1/order/${id}`),
  syncInfo: (data: any) => api.post('/v1/orderSync', data),
  updateBillInfo: (data: any) => api.post('/v1/updateBillInfo', data),
}
